package com.briup.day24;

import java.io.*;

public class Test_PrintStream {
    public static void main(String[] args) throws Exception {
       FileReader file=new FileReader("01-Basic/src/dir/a.txt");
        BufferedReader br = new BufferedReader(file);
        PrintStream ps = new PrintStream("01-Basic/src/dir/b.txt");
        String line;
        while((line=br.readLine())!=null){
            if(br.ready()){
                ps.println(line);
            }else {
                ps.println(line);
            }
        }
    }
}
